#include "show_toast.h"


void show_toast(const char* text) {
    lv_obj_t* toast = lv_label_create(lv_scr_act());
    lv_label_set_text(toast, text);

    lv_obj_set_style_bg_color(toast, lv_palette_darken(LV_PALETTE_BLUE, 3), 0);
    lv_obj_set_style_text_color(toast, lv_palette_darken(LV_PALETTE_RED, 3), 0);
    lv_obj_align(toast,LV_ALIGN_CENTER,0,-70);
    delay(2000);
    lv_obj_del(toast);
}